The Analyze Menu
For C and C++, the source files can be analyzed either individually or in a group. For C and C++, there are two kinds of analysis available: "file-based" and "CMA". "File-based" analysis operates at the translation unit level and checks for issues such as correct language use, dataflow and layout. CMA analysis operates across translation unit boundaries and checks for issues such as duplicate definitions, incompatible declarations and unused variables (refer to Cross-Module Analysis (CMA)).
For other languages, analysis operates on all the files in the project.
The menu options are as follows:
- File-Based Analysis of project - Analyzes the currently selected files.
- Clean project - Removes the diagnostics, and any manually added (
.i
) raw source files, from the project. - Run CMA Analysis - Performs CMA Analysis on CMA projects, which are created using Open CMA Project Editor, located below the Project menu.
- Analyze Raw Source File - This option is primarily for analyzing pre-processed (
.i
) C and C++ files. Refer to Files Panel. - Stop Analysis - Stops the scheduling of any new outstanding jobs, but allows any currently running analysis jobs to complete.
- Abort Analysis - Immediately terminates any currently running analysis jobs and stops scheduling any new outstanding jobs.
- Open Analysis Settings - This feature is intended to help control the generation of analysis information to aid debugging. the following options are available is the displayed dialog:
- Stop Analysis Upon Failure If this is checked, analysis stops as soon as an error is encountered in any of the files.
- Generate Preprocessed Source for Analyzed Files If this is checked, then
.i
files are produced ready for Raw Source Analysis (these are standalone files containing any "#include
" headers). - Assemble Support Analytics for Failed Files produces a
.zip
file containing the.arc
,.i
and.via
files for the analyzed file(s) in the event of a parser failure. - Max. Number of Analysis threads is the number of CPUs that can be allocated towards the Analysis task.
- Number of times to re-try after failure sets how many times an analysis is repeated when a license error occurs
For Windows, this value cannot exceed 60.